import sys
import select

def testSelect():
    r = select.select([sys.stdin], [], [], 5.0)
    print r

if __name__ == "__main__":
    try:
        testSelect()
    except select.error, e:
        print e
    